this.name               = "Switch reticle_target_sensitive and Galactic Hyperdrive Class 2 functions off";
this.author               = "Lestradae";
this.copyright            = "Creative Commons: attribution, non-commercial, sharealike.";
this.description            = "Switch the target reticle to red when on target off and sets the galactic hyperdrive to standard";
this.version            = "1.0";

this.startUp = this.reset = function()
        {
        if(missionVariables.galhyper == 1)
                {
                player.ship.galacticHyperspaceBehaviour = "BEHAVIOUR_ALL_SYSTEMS_REACHABLE";
                this.defaultGalacticHyperspaceBehaviour = player.ship.galacticHyperspaceBehaviour;
                }
        }

this.playerBoughtEquipment = function(equipment)
        {
        switch(equipment)
                {
                case "EQ_COMBAT_COMP_SALE":
                        {
                        missionVariables.reticle = null;
                        player.ship.reticleTargetSensitive = false;
                        player.credits += 15000;
                        player.ship.removeEquipment("EQ_COMBAT_COMP");
                        player.ship.removeEquipment("EQ_COMBAT_COMP_SALE");
                        return;
                        }

                case "EQ_GALACTIC_HYPERDRIVE_2_SALE":
                        {
                        missionVariables.galhyper = null;
                        player.ship.galacticHyperspaceBehaviour = "BEHAVIOUR_STANDARD";
                        this.defaultGalacticHyperspaceBehaviour = player.ship.galacticHyperspaceBehaviour;
                        player.credits += 75000;
                        player.ship.removeEquipment("EQ_GALACTIC_HYPERDRIVE_2");
                        player.ship.removeEquipment("EQ_GALACTIC_HYPERDRIVE_2_SALE");
                        return;
                        }
                }
        }